FIND_PATH(LIBPNG_INCLUDE_DIR LIBPNG.h)
FIND_LIBRARY(LIBPNG_LIBRARY_RELEASE NAMES libpng)
FIND_LIBRARY(LIBPNG_LIBRARY_DEBUG NAMES libpngD)
set(LIBPNG_LIBRARY ${LIBPNG_LIBRARY_RELEASE})
set(LIBPNG_LIBRARIES optimized ${LIBPNG_LIBRARY_RELEASE} debug ${LIBPNG_LIBRARY_DEBUG})
if (LIBPNG_INCLUDE_DIR AND LIBPNG_LIBRARY)
  set(LIBPNG_FOUND TRUE)
endif()
